package com.ruoyi.ams.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 实物信息变更详情对象 ams_asset_info_change_detail
 * 
 * @author yfkj
 * @date 2022-05-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AmsAssetInfoChangeDetail
{
    private static final long serialVersionUID = 1L;
    /** 实物信息变更详情表主键 */
    @TableField(exist = true)
    @TableId(type= IdType.AUTO)
    @ApiModelProperty(value =  "${comment}")
    private Long assetInfoChangeDetailId;
    /** 实物变更信息表主键 */
    @Excel(name = "实物变更信息表主键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "实物变更信息表主键")
    private Long assetInfoChangeId;
    /** 属性 */
    @Excel(name = "属性")
    @TableField(exist = true)
    @ApiModelProperty(value =  "属性")
    private String attribute;
    /** 属性的英文字段 */
    @Excel(name = "属性的英文字段")
    @TableField(exist = true)
    @ApiModelProperty(value =  "属性的英文字段")
    private String attributeEn;
    /** 旧值 */
    @Excel(name = "旧值")
    @TableField(exist = true)
    @ApiModelProperty(value =  "旧值")
    private String oldValue;
    /** 新值 */
    @Excel(name = "新值")
    @TableField(exist = true)
    @ApiModelProperty(value =  "新值")
    private String newValue;
    /** 该条记录是修改还是展示：0修改 1展示 2即修改也展示 */
    @Excel(name = "该条记录是修改还是展示：0修改 1展示 2即修改也展示")
    @TableField(exist = true)
    @ApiModelProperty(value =  "该条记录是修改还是展示：0修改 1展示 2即修改也展示")
    private Integer editOrShow;

    public static final String ASSET_INFO_CHANGE_DETAIL_ID="asset_info_change_detail_id";
    public static final String ASSET_INFO_CHANGE_ID="asset_info_change_id";
    public static final String ATTRIBUTE="attribute";
    public static final String ATTRIBUTE_EN="attribute_en";
    public static final String OLD_VALUE="old_value";
    public static final String NEW_VALUE="new_value";
    public static final String EDIT_OR_SHOW="edit_or_show";

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("assetInfoChangeDetailId", getAssetInfoChangeDetailId())
            .append("assetInfoChangeId", getAssetInfoChangeId())
            .append("attribute", getAttribute())
            .append("oldValue", getOldValue())
            .append("newValue", getNewValue())
            .toString();
    }
}
